<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>design</title>
</head>
<body>
    <form action="" method="post" name="view_bulletin" enctype="multipart/form-data">

        <table>
            {%if form.choise_design.design_id.data!=''%}
            <tr>
                <th>选择后不能不可更改</th>
                <th>已选毕设：</th>
            </tr>
            <tr>
                <th>
                    {{form.choise_design.design_id}}
                </th>
                <th>
                    {{form.choise_design.teacher}}
                </th>
                <th>
                    {{form.choise_design.design}}
                </th>
            </tr>
            {%else%}
            <tr>
                    未选择
            </tr>
            {%endif%}
            <tr>
                <th>毕设id</th>
                <th>老师名称</th>
                <th>毕业设计名称</th>
                <th>是否可选</th>
            </tr>
        </table>

            {%for i in form.design_list%}
        <table>
            <tr>
                <th>{{i.design_id.data}}</th>
                <th>{{i.teacher.data}}</th>
                <th>{{i.design.data}}</th>
                {% if i.student_id.data==30000 or i.student_id.data==None %}
                <input type="submit" value="{{i.design_id.data}}可选" name={{i.design_id.data}}>

                {%else%}
                <th>已选</th>
                {%endif%}
            </tr>
        </table>
            {%endfor%}

        <input type="submit" value="提交" name="提交">

    </form>
</body>
</html>